import request from '@/utils/request'

// 查询分配规则列表
export function listFundAllocationRules(query) {
  return request({
    url: '/allocationRules/fundAllocationRules/list',
    method: 'get',
    params: query
  })
}

// 查询分配规则详细
export function getFundAllocationRules(id) {
  return request({
    url: '/allocationRules/fundAllocationRules/' + id,
    method: 'get'
  })
}

// 保存分配规则
export function saveFundAllocationRules(data) {
  return request({
    url: '/allocationRules/fundAllocationRules/save',
    method: 'post',
    data: data
  })
}

// 删除分配规则
export function delFundAllocationRules(id) {
  return request({
    url: '/allocationRules/fundAllocationRules/' + id,
    method: 'delete'
  })
}

// 导出分配规则
export function exportFundAllocationRules(query) {
  return request({
    url: '/allocationRules/fundAllocationRules/export',
    method: 'get',
    params: query
  })
}
